package com.duotai.duotai4;

public class Test {
    public static void main(String[] args) {
        PeopleDao dao = new PeopleDao();
        Student stu1 = new Student(1,"张三丰","太极拳");
        Student stu2 = new Student(2,"叶问","咏春");
        Student stu3 = new Student(3,"张无忌","九阳神功");

        dao.add(stu1);
        dao.add(stu2);
        dao.add(stu3);

        Teacher t1 = new Teacher(4,"张雪峰","考研");
        Teacher t2 = new Teacher(5,"刘晓燕","英语");
        dao.add(t1);
        dao.add(t2);

        dao.findAll();

        System.out.println("--------------------------");
        Teacher t = new Teacher();
        t.setJob("考研");
        dao.findByJob(t);


    }
}
